﻿<!DOCTYPE html>
<html lang="en-us" xmlns="http://www.w3.org/1999/html">
	<head>
		<meta charset="utf-8" >
		<!--<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">-->

		<title> Supervisión </title>
		<meta name="description" content="">
		<meta name="author" content="">

		<!-- Use the correct meta names below for your web application
			 Ref: http://davidbcalhoun.com/2010/viewport-metatag 
			 
		<meta name="HandheldFriendly" content="True">
		<meta name="MobileOptimized" content="320">-->
		
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

		<!-- Basic Styles -->
		<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" media="screen" href="css/font-awesome.min.css">

		<!-- SmartAdmin Styles : Please note (smartadmin-production.css) was created using LESS variables -->
		<link rel="stylesheet" type="text/css" media="screen" href="css/smartadmin-production.css">
		<link rel="stylesheet" type="text/css" media="screen" href="css/smartadmin-skins.css">

		<!-- SmartAdmin RTL Support is under construction
		<link rel="stylesheet" type="text/css" media="screen" href="css/smartadmin-rtl.css"> -->

		<!-- We recommend you use "your_style.css" to override SmartAdmin
		     specific styles this will also ensure you retrain your customization with each SmartAdmin update.
		<link rel="stylesheet" type="text/css" media="screen" href="css/your_style.css"> -->

		<!-- Demo purpose only: goes with demo.js, you can delete this css when designing your own WebApp -->
		<link rel="stylesheet" type="text/css" media="screen" href="css/demo.css">

		<!-- FAVICONS -->
		<link rel="shortcut icon" href="img/favicon/favicon.ico" type="image/x-icon">
		<link rel="icon" href="img/favicon/favicon.ico" type="image/x-icon">

		<!-- GOOGLE FONT -->
		<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,300,400,700">

		
	</head>
	<body class="smart-style-2" >
		<!-- possible classes: minified, fixed-ribbon, fixed-header, fixed-width-->

		<!-- HEADER -->
		<header id="header">
			<div id="logo-group">

				<!-- PLACE YOUR LOGO HERE -->
				<span id="logo"> <img src="img/logo-white.png" alt="SmartAdmin"> </span>
				<!-- END LOGO PLACEHOLDER -->

				<!-- Note: The activity badge color changes when clicked and resets the number to 0
				Suggestion: You may want to set a flag when this happens to tick off all checked messages / notifications -->
				<span id="activity" class="activity-dropdown"> <i class="fa fa-user"></i> <b class="badge"> 21 </b> </span>

				<!-- AJAX-DROPDOWN : control this dropdown height, look and feel from the LESS variable file -->
				<div class="ajax-dropdown">

					<!-- the ID links are fetched via AJAX to the ajax container "ajax-notifications" -->
					<div class="btn-group btn-group-justified" data-toggle="buttons">
						<label class="btn btn-default">
							<input type="radio" name="activity" id="ajax/notify/mail.html">
							Msgs (14) </label>
						<label class="btn btn-default">
							<input type="radio" name="activity" id="ajax/notify/notifications.html">
							Notif (3) </label>
						<label class="btn btn-default">
							<input type="radio" name="activity" id="ajax/notify/tasks.html">
							Tareas (4) </label>
					</div>

					<!-- notification content -->
					<div class="ajax-notifications custom-scroll">

						<div class="alert alert-transparent">
							<h4>Click a button to show messages here</h4>
							This blank page message helps protect your privacy, or you can show the first message here automatically.
						</div>

						<i class="fa fa-lock fa-4x fa-border"></i>

					</div>
					<!-- end notification content -->

					<!-- footer: refresh area -->
					<span> Last updated on: 12/12/2013 9:43AM
						<button type="button" data-loading-text="<i class='fa fa-refresh fa-spin'></i> Loading..." class="btn btn-xs btn-default pull-right">
							<i class="fa fa-refresh"></i>
						</button> </span>
					<!-- end footer -->

				</div>
				<!-- END AJAX-DROPDOWN -->
			</div>

			<!-- projects dropdown -->
			<div id="project-context">

				<span class="label">Projects:</span>
				<span id="project-selector" class="popover-trigger-element dropdown-toggle" data-toggle="dropdown">Recent projects <i class="fa fa-angle-down"></i></span>

				<!-- Suggestion: populate this list with fetch and push technique -->
				<ul class="dropdown-menu">
					<li>
						<a href="javascript:void(0);">Online e-merchant management system - attaching integration with the iOS</a>
					</li>
					<li>
						<a href="javascript:void(0);">Notes on pipeline upgradee</a>
					</li>
					<li>
						<a href="javascript:void(0);">Assesment Report for merchant account</a>
					</li>
					<li class="divider"></li>
					<li>
						<a href="javascript:void(0);"><i class="fa fa-power-off"></i> Clear</a>
					</li>
				</ul>
				<!-- end dropdown-menu-->

			</div>
			<!-- end projects dropdown -->

			<!-- pulled right: nav area -->
			<div class="pull-right">

				<!-- collapse menu button -->
				<div id="hide-menu" class="btn-header pull-right">
					<span> <a href="javascript:void(0);" title="Collapse Menu"><i class="fa fa-reorder"></i></a> </span>
				</div>
				<!-- end collapse menu -->

				<!-- logout button -->
				<div id="logout" class="btn-header transparent pull-right">
					<span> <a href="login.html" title="Sign Out"><i class="fa fa-sign-out"></i></a> </span>
				</div>
				<!-- end logout button -->

				<!-- search mobile button (this is hidden till mobile view port) -->
				<div id="search-mobile" class="btn-header transparent pull-right">
					<span> <a href="javascript:void(0)" title="Search"><i class="fa fa-search"></i></a> </span>
				</div>
				<!-- end search mobile button -->

				<!-- input: search field -->
				<form action="#search.html" class="header-search pull-right">
					<input type="text" placeholder="Find reports and more" id="search-fld">
					<button type="submit">
						<i class="fa fa-search"></i>
					</button>
					<a href="javascript:void(0);" id="cancel-search-js" title="Cancel Search"><i class="fa fa-times"></i></a>
				</form>
				<!-- end input: search field -->



			</div>
			<!-- end pulled right: nav area -->

		</header>
		<!-- END HEADER -->

		<!-- Left panel : Navigation area -->
		<!-- Note: This width of the aside area can be adjusted through LESS variables -->
		<aside id="left-panel">

			<!-- User info -->
            <div class="login-info">
				<span> <!-- User image size is adjusted inside CSS, it should stay as it --> 
					
					<a href="javascript:void(0);" id="show-shortcut">
                        <img src="img/avatars/male.png" alt="me" class="online" id="image" />
						<span>
							<div id = "nombreCliente" ></div>
						</span>
                        <i class="fa fa-angle-down"></i>
                    </a>
					
				</span>
            </div>
			<!-- end user info -->

			<!-- NAVIGATION : This navigation is also responsive

			To make this navigation dynamic please make sure to link the node
			(the reference to the nav > ul) after page load. Or the navigation
			will not initialize.
			-->
            <nav>
                <!-- NOTE: Notice the gaps after each icon usage <i></i>..
                Please note that these links work a bit different than
                traditional hre="" links. See documentation for details.
                -->

                <ul>
                    <li>
                        <a href="index.html" title="Dashboard"><i class="fa fa-lg fa-fw fa-home"></i> <span class="menu-item-parent">Dashboard</span></a>
                    </li>
                    <li>
                        <a href="pedido.html"><i class="fa fa-lg fa-fw fa-inbox"></i> <span class="menu-item-parent">Pedidos Nuevos</span><span class="badge pull-right inbox-badge">14</span></a>
                    </li>
                    <li>
                        <a href="pedidohist.html"><i class="fa fa-lg fa-fw fa-inbox"></i> <span class="menu-item-parent">Pedidos Históricos</span></a>
                    </li>
                    <li class="active">
                        <a href="supervision.html"><i class="fa fa-lg fa-fw fa-map-marker"></i> <span class="menu-item-parent">Supervisión</span><span class="badge bg-color-greenLight pull-right inbox-badge">9</span></a>
                    </li>
                    <li>
                        <a href="galeria.html"><i class="fa fa-lg fa-fw fa-picture-o"></i> <span class="menu-item-parent">Galería</span><span class="badge bg-color-greenLight pull-right inbox-badge">5</span></a>
                    </li>
                    <li>
                        <a href="perfil.html"><i class="fa fa-lg fa-fw  fa-facebook"></i> <span class="menu-item-parent">Perfil</span></a>
                    </li>
                    <li>
                        <a href="usuarios.html"><i class="fa fa-lg fa-fw  fa-user"></i> <span class="menu-item-parent">Usuarios</span></a>
                    </li>
					
                </ul>
            </nav>
			<span class="minifyme"> <i class="fa fa-arrow-circle-left hit"></i> </span>

		</aside>
		<!-- END NAVIGATION -->

		<!-- MAIN PANEL -->
		<div id="main" role="main">

			<!-- RIBBON -->
			<div id="ribbon">

				<span class="ribbon-button-alignment"> <span id="refresh" class="btn btn-ribbon" data-title="refresh"  rel="tooltip" data-placement="bottom" data-original-title="<i class='text-warning fa fa-warning'></i> Warning! This will reset all your widget settings." data-html="true"><i class="fa fa-refresh"></i></span> </span>

				<!-- breadcrumb -->
				<ol class="breadcrumb">
					<li>
						Supervisión
					</li>
				</ol>
				<!-- end breadcrumb -->

				<!-- You can also add more buttons to the
				ribbon for further usability

				Example below:

				<span class="ribbon-button-alignment pull-right">
				<span id="search" class="btn btn-ribbon hidden-xs" data-title="search"><i class="fa-grid"></i> Change Grid</span>
				<span id="add" class="btn btn-ribbon hidden-xs" data-title="add"><i class="fa-plus"></i> Add</span>
				<span id="search" class="btn btn-ribbon" data-title="search"><i class="fa-search"></i> <span class="hidden-mobile">Search</span></span>
				</span> -->

			</div>
			<!-- END RIBBON -->

			<!-- MAIN CONTENT -->
			<div id="content" 


                <div class="row">

                    <!-- NEW WIDGET START -->
                    <article class="col-xs-12 col-sm-12 col-md-12 col-lg-12">

                        <!-- Widget ID (each widget will need unique ID)-->
                        <div class="jarviswidget jarviswidget-color-white" id="wid-id-0" data-widget-editbutton="false" data-widget-deletebutton="false" data-widget-fullscreenbutton="false">
                            <!-- widget options:
                                usage: <div class="jarviswidget" id="wid-id-0" data-widget-editbutton="false">

                                data-widget-colorbutton="false"
                                data-widget-editbutton="false"
                                data-widget-togglebutton="false"
                                data-widget-deletebutton="false"
                                data-widget-fullscreenbutton="false"
                                data-widget-custombutton="false"
                                data-widget-collapsed="true"
                                data-widget-sortable="false"

                            -->
                            <!-- widget div-->
                            <div>

                                <!-- widget edit box -->
                                <div class="jarviswidget-editbox">
                                    <!-- This area used as dropdown edit box -->

                                </div>
                                <!-- end widget edit box -->

                                <!-- widget content -->
                                <div class="widget-body no-padding">

                                    <form class="smart-form">

                                        <section class="col col-3">
                                        <div class="form-group">
                                            <label>Indicador</label>
                                            <select style="width:100%" class="select2" id = "filtro_indicador">
                                            </select>
                                        </div>
                                    </section>
                                        <section class="col col-3">
                                            <div class="form-group">
                                            <label>Vendedor</label>
                                            <select multiple style="width:100%" class="select2" id = "filtro_usuarios">
                                            </select>
                                            </div>
                                         </section>
                                                <section class="col col-2">
                                                    <div class="form-group">
                                                        <label></label>
                                                <div class="input-group">
                                                    <input type="text" name="mydate" placeholder="Desde" class="form-control datepicker" data-dateformat="mm/dd/yy" id ="my_start_date">
                                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                                </div>
                                                    </div>
                                                </section>
                                             <section class="col col-2">
                                                 <div class="form-group">
                                                     <label></label>
                                                <div class="input-group">
                                                    <input type="text" name="mydate" placeholder="Hasta" class="form-control datepicker" data-dateformat="mm/dd/yy" id = "my_end_date">
                                                    <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                                                </div>
                                                 </div>
                                            </section>
                                        <section class="col col-2">
                                            <div class="form-group">
                                                <label></label>
                                                <div class="input-group">
                                                    <a class="btn btn-primary btn-circle btn" id="btn_mapa"><i class="glyphicon glyphicon-send"></i></a>

                                                </div>
                                            </div>
                                        </section>
                                    </form>
                                    </div>


                            <!-- widget div-->
                            <div>

                                <!-- widget edit box -->
                                <div class="jarviswidget-editbox">
                                    <!-- This area used as dropdown edit box -->

                                </div>
                                <!-- end widget edit box -->

                                <!-- widget content -->
                                <div class="widget-body no-padding">
                                    <div id ="mapa">
                                            <div id="map_canvas" class="google_maps">
                                           &nbsp;
                                       </div>
                                       </div>
                                   </div>
                                   <!-- end widget content -->

                            </div>
                            <!-- end widget div -->

                        </div>
                        <!-- end widget -->
                                <!-- WIDGET END -->

                        </div>

                    </article>


                </div>

                <!-- end row -->

            </div>
			<!-- END MAIN CONTENT -->

		</div>
		<!-- END MAIN PANEL -->

		<!-- SHORTCUT AREA : With large tiles (activated via clicking user name tag)
		Note: These tiles are completely responsive,
		you can add as many as you like
		-->
		<div id="shortcut">
			<ul>
				<li>
					<a href="#inbox.html" class="jarvismetro-tile big-cubes bg-color-blue"> <span class="iconbox"> <i class="fa fa-envelope fa-4x"></i> <span>Mail <span class="label pull-right bg-color-darken">14</span></span> </span> </a>
				</li>
				<li>
					<a href="#calendar.html" class="jarvismetro-tile big-cubes bg-color-orangeDark"> <span class="iconbox"> <i class="fa fa-calendar fa-4x"></i> <span>Calendar</span> </span> </a>
				</li>
				<li>
					<a href="#gmap-xml.html" class="jarvismetro-tile big-cubes bg-color-purple"> <span class="iconbox"> <i class="fa fa-map-marker fa-4x"></i> <span>Maps</span> </span> </a>
				</li>
				<li>
					<a href="#invoice.html" class="jarvismetro-tile big-cubes bg-color-blueDark"> <span class="iconbox"> <i class="fa fa-book fa-4x"></i> <span>Invoice <span class="label pull-right bg-color-darken">99</span></span> </span> </a>
				</li>
				<li>
					<a href="#gallery.html" class="jarvismetro-tile big-cubes bg-color-greenLight"> <span class="iconbox"> <i class="fa fa-picture-o fa-4x"></i> <span>Gallery </span> </span> </a>
				</li>
				<li>
					<a href="javascript:void(0);" class="jarvismetro-tile big-cubes selected bg-color-pinkDark"> <span class="iconbox"> <i class="fa fa-user fa-4x"></i> <span>My Profile </span> </span> </a>
				</li>
			</ul>
		</div>
		<!-- END SHORTCUT AREA -->

		<!--================================================== -->

		<!-- PACE LOADER - turn this on if you want ajax loading to show (caution: uses lots of memory on iDevices)-->
		<script data-pace-options='{ "restartOnRequestAfter": true }' src="js/plugin/pace/pace.min.js"></script>

		<!-- Link to Google CDN's jQuery + jQueryUI; fall back to local -->
		<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
		<script>
			if (!window.jQuery) {
				document.write('<script src="js/libs/jquery-2.0.2.min.js"><\/script>');
			}
		</script>

		<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
		<script>
			if (!window.jQuery.ui) {
				document.write('<script src="js/libs/jquery-ui-1.10.3.min.js"><\/script>');
			}
		</script>

		<!-- JS TOUCH : include this plugin for mobile drag / drop touch events
		<script src="js/plugin/jquery-touch/jquery.ui.touch-punch.min.js"></script> -->

		<!-- BOOTSTRAP JS -->
		<script src="js/bootstrap/bootstrap.min.js"></script>

		<!-- CUSTOM NOTIFICATION -->
		<script src="js/notification/SmartNotification.min.js"></script>

		<!-- JARVIS WIDGETS -->
		<script src="js/smartwidgets/jarvis.widget.min.js"></script>

		<!-- EASY PIE CHARTS -->
		<script src="js/plugin/easy-pie-chart/jquery.easy-pie-chart.min.js"></script>

		<!-- SPARKLINES -->
		<script src="js/plugin/sparkline/jquery.sparkline.min.js"></script>

		<!-- JQUERY VALIDATE -->
		<script src="js/plugin/jquery-validate/jquery.validate.min.js"></script>

		<!-- JQUERY MASKED INPUT -->
		<script src="js/plugin/masked-input/jquery.maskedinput.min.js"></script>

		<!-- JQUERY SELECT2 INPUT -->
		<script src="js/plugin/select2/select2.min.js"></script>

		<!-- JQUERY UI + Bootstrap Slider -->
		<script src="js/plugin/bootstrap-slider/bootstrap-slider.min.js"></script>

		<!-- browser msie issue fix -->
		<script src="js/plugin/msie-fix/jquery.mb.browser.min.js"></script>

		<!-- FastClick: For mobile devices -->
		<script src="js/plugin/fastclick/fastclick.js"></script>

        <script src="js/page/supervision.js" type="text/javascript"></script>
        <script src="js/page/usuario.js" type="text/javascript"></script>

		<!--[if IE 7]>

		<h1>Your browser is out of date, please update your browser by going to www.microsoft.com/download</h1>

		<![endif]-->

		<!-- Demo purpose only -->
		<script src="js/demo.js"></script>

		<!-- MAIN APP JS FILE -->
		<script src="js/app.js"></script>
        <script src="js/Global.js"></script>
		<!-- PAGE RELATED PLUGIN(S) 
		<script src="..."></script>-->

		

		<script type="text/javascript">

        $("#btn_mapa").click(function() {
            $('#mapa').html('Cargando...<br><img title="img/ajax-loader.gif" src="img/ajax-loader.gif">');
            $.ajax({
                dataType: 'html',//html
                url: "mapa_ajax2.html",
                type: "get",
                data: {
                    usuarios : $("#filtro_usuarios").val(),
                    indicador: $("#filtro_indicador").val(),
                    f_d: $("#my_start_date").val(),
                    f_h: $("#my_end_date").val()
                },
                success: function(result) {
                    $("#mapa").html(result);
                },
                error: function(result) {
                    $("#mapa").html("Hubo una falla, intente de nuevo");
                }
            });
        });

        // DO NOT REMOVE : GLOBAL FUNCTIONS!

        $(document).ready(function() {

            pageSetUp();

            // PAGE RELATED SCRIPTS

            var colorful_style = [{
                "featureType": "landscape",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "transit",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi.park",
                "elementType": "labels",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi.park",
                "elementType": "geometry.fill",
                "stylers": [{
                    "color": "#d3d3d3"
                }, {
                    "visibility": "on"
                }]
            }, {
                "featureType": "road",
                "elementType": "geometry.stroke",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "landscape",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#b1bc39"
                }]
            }, {
                "featureType": "landscape.man_made",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#ebad02"
                }]
            }, {
                "featureType": "water",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#416d9f"
                }]
            }, {
                "featureType": "road",
                "elementType": "labels.text.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#000000"
                }]
            }, {
                "featureType": "road",
                "elementType": "labels.text.stroke",
                "stylers": [{
                    "visibility": "off"
                }, {
                    "color": "#ffffff"
                }]
            }, {
                "featureType": "administrative",
                "elementType": "labels.text.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#000000"
                }]
            }, {
                "featureType": "road",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#ffffff"
                }]
            }, {
                "featureType": "road",
                "elementType": "labels.icon",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "water",
                "elementType": "labels",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi",
                "elementType": "geometry.fill",
                "stylers": [{
                    "color": "#ebad02"
                }]
            }, {
                "featureType": "poi.park",
                "elementType": "geometry.fill",
                "stylers": [{
                    "color": "#8ca83c"
                }]
            }];

            // Grey Scale
            var greyscale_style = [{
                "featureType": "road.highway",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "landscape",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "transit",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi.park",
                "stylers": [{
                    "visibility": "on"
                }]
            }, {
                "featureType": "poi.park",
                "elementType": "labels",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi.park",
                "elementType": "geometry.fill",
                "stylers": [{
                    "color": "#d3d3d3"
                }, {
                    "visibility": "on"
                }]
            }, {
                "featureType": "poi.medical",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi.medical",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "road",
                "elementType": "geometry.stroke",
                "stylers": [{
                    "color": "#cccccc"
                }]
            }, {
                "featureType": "water",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#cecece"
                }]
            }, {
                "featureType": "road.local",
                "elementType": "labels.text.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#808080"
                }]
            }, {
                "featureType": "administrative",
                "elementType": "labels.text.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#808080"
                }]
            }, {
                "featureType": "road",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#fdfdfd"
                }]
            }, {
                "featureType": "road",
                "elementType": "labels.icon",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "water",
                "elementType": "labels",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi",
                "elementType": "geometry.fill",
                "stylers": [{
                    "color": "#d2d2d2"
                }]
            }];

            // Black & White
            var monochrome_style = [{
                "featureType": "road.highway",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "landscape",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "transit",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi.park",
                "elementType": "labels",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi.park",
                "elementType": "geometry.fill",
                "stylers": [{
                    "color": "#d3d3d3"
                }, {
                    "visibility": "on"
                }]
            }, {
                "featureType": "road",
                "elementType": "geometry.stroke",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "landscape",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#ffffff"
                }]
            }, {
                "featureType": "water",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#cecece"
                }]
            }, {
                "featureType": "road",
                "elementType": "labels.text.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#000000"
                }]
            }, {
                "featureType": "road",
                "elementType": "labels.text.stroke",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#ffffff"
                }]
            }, {
                "featureType": "administrative",
                "elementType": "labels.text.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#000000"
                }]
            }, {
                "featureType": "road",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#000000"
                }]
            }, {
                "featureType": "road",
                "elementType": "labels.icon",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "water",
                "elementType": "labels",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "off"
                }]
            }];

            // Retro
            var metro_style = [{
                "featureType": "transit",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi.park",
                "elementType": "geometry.fill",
                "stylers": [{
                    "color": "#d3d3d3"
                }, {
                    "visibility": "on"
                }]
            }, {
                "featureType": "road",
                "elementType": "geometry.stroke",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "landscape",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#eee8ce"
                }]
            }, {
                "featureType": "water",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#b8cec9"
                }]
            }, {
                "featureType": "road",
                "elementType": "labels.text.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#000000"
                }]
            }, {
                "featureType": "road",
                "elementType": "labels.text.stroke",
                "stylers": [{
                    "visibility": "off"
                }, {
                    "color": "#ffffff"
                }]
            }, {
                "featureType": "administrative",
                "elementType": "labels.text.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#000000"
                }]
            }, {
                "featureType": "road",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#ffffff"
                }]
            }, {
                "featureType": "road",
                "elementType": "geometry.stroke",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "road",
                "elementType": "labels.icon",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "water",
                "elementType": "labels",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi",
                "elementType": "geometry.fill",
                "stylers": [{
                    "color": "#d3cdab"
                }]
            }, {
                "featureType": "poi.park",
                "elementType": "geometry.fill",
                "stylers": [{
                    "color": "#ced09d"
                }]
            }, {
                "featureType": "poi",
                "elementType": "labels",
                "stylers": [{
                    "visibility": "off"
                }]
            }];

            // Night
            var nightvision_style = [{
                "featureType": "landscape",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "transit",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi.park",
                "elementType": "labels",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi.park",
                "elementType": "geometry.fill",
                "stylers": [{
                    "color": "#d3d3d3"
                }, {
                    "visibility": "on"
                }]
            }, {
                "featureType": "road",
                "elementType": "geometry.stroke",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "landscape",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "hue": "#0008ff"
                }, {
                    "lightness": -75
                }, {
                    "saturation": 10
                }]
            }, {
                "elementType": "geometry.stroke",
                "stylers": [{
                    "color": "#1f1d45"
                }]
            }, {
                "featureType": "landscape.natural",
                "stylers": [{
                    "color": "#1f1d45"
                }]
            }, {
                "featureType": "water",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#01001f"
                }]
            }, {
                "elementType": "labels.text.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#e7e8ec"
                }]
            }, {
                "elementType": "labels.text.stroke",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#151348"
                }]
            }, {
                "featureType": "administrative",
                "elementType": "labels.text.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#f7fdd9"
                }]
            }, {
                "featureType": "administrative",
                "elementType": "labels.text.stroke",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#01001f"
                }]
            }, {
                "featureType": "road",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#316694"
                }]
            }, {
                "featureType": "road",
                "elementType": "labels.icon",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "water",
                "elementType": "labels",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi",
                "elementType": "geometry.fill",
                "stylers": [{
                    "color": "#1a153d"
                }]

            }];

            // Night Light
            var nightvision_highlight_style = [{
                "elementType": "geometry",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "hue": "#232a57"
                }]
            }, {
                "featureType": "road.highway",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "landscape",
                "elementType": "geometry.fill",
                "stylers": [{
                    "hue": "#0033ff"
                }, {
                    "saturation": 13
                }, {
                    "lightness": -77
                }]
            }, {
                "featureType": "landscape",
                "elementType": "geometry.stroke",
                "stylers": [{
                    "color": "#4657ab"
                }]
            }, {
                "featureType": "transit",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "road",
                "elementType": "geometry.stroke",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "water",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#0d0a1f"
                }]
            }, {
                "elementType": "labels.text.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#d2cfe3"
                }]
            }, {
                "elementType": "labels.text.stroke",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#0d0a1f"
                }]
            }, {
                "featureType": "administrative",
                "elementType": "labels.text.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#ffffff"
                }]
            }, {
                "featureType": "administrative",
                "elementType": "labels.text.stroke",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#0d0a1f"
                }]
            }, {
                "featureType": "road",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#ff9910"
                }]
            }, {
                "featureType": "road.local",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#4657ab"
                }]
            }, {
                "featureType": "road",
                "elementType": "labels.icon",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "water",
                "elementType": "labels",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi",
                "elementType": "geometry.fill",
                "stylers": [{
                    "color": "#232a57"
                }]
            }, {
                "featureType": "poi.park",
                "elementType": "geometry.fill",
                "stylers": [{
                    "color": "#232a57"
                }]
            }, {
                "featureType": "poi",
                "elementType": "labels",
                "stylers": [{
                    "visibility": "off"
                }]
            }];

            // Papiro
            var old_paper_style = [{
                "elementType": "geometry",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#f2e48c"
                }]
            }, {
                "featureType": "road.highway",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "transit",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi.park",
                "elementType": "labels",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi.park",
                "elementType": "geometry.fill",
                "stylers": [{
                    "color": "#d3d3d3"
                }, {
                    "visibility": "on"
                }]
            }, {
                "featureType": "road",
                "elementType": "geometry.stroke",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "landscape",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#f2e48c"
                }]
            }, {
                "featureType": "landscape",
                "elementType": "geometry.stroke",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#592c00"
                }]
            }, {
                "featureType": "water",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#a77637"
                }]
            }, {
                "elementType": "labels.text.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#592c00"
                }]
            }, {
                "elementType": "labels.text.stroke",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#f2e48c"
                }]
            }, {
                "featureType": "administrative",
                "elementType": "labels.text.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#592c00"
                }]
            }, {
                "featureType": "administrative",
                "elementType": "labels.text.stroke",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#f2e48c"
                }]
            }, {
                "featureType": "road",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#a5630f"
                }]
            }, {
                "featureType": "road.highway",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "on"
                }, {
                    "color": "#592c00"
                }]
            }, {
                "featureType": "road",
                "elementType": "labels.icon",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "water",
                "elementType": "labels",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi",
                "elementType": "geometry.fill",
                "stylers": [{
                    "visibility": "off"
                }]
            }, {
                "featureType": "poi",
                "elementType": "labels",
                "stylers": [{
                    "visibility": "off"
                }]
            }];

            // One color - Change the hue value for your desired color
            var mono_color_style = [{
                "stylers": [{
                    "hue": "#ff00aa"
                }, {
                    "saturation": 1
                }, {
                    "lightness": 1
                }]
            }];

            /*
             * Google Maps Initialize
             */

            function initialize() {

                $this = $("#map_canvas");
                $zoom_level = ($this.data("gmap-zoom") || 7);
                $data_lat = ($this.data("gmap-lat") || -0.0705254761163916);
                $data_lng = ($this.data("gmap-lng") || -76.38155361913323);
                $xml_src = ($this.data("gmap-src") || "js/test.xml");

                var greyStyleMap = new google.maps.StyledMapType(greyscale_style, {
                            name: "Greyscale"
                        }),
                        monoChromeStyleMap = new google.maps.StyledMapType(monochrome_style, {
                            name: "Mono Chrome"
                        }),
                        metroStyleMap = new google.maps.StyledMapType(metro_style, {
                            name: "Metro"
                        }),
                        nightvisionStyleMap = new google.maps.StyledMapType(nightvision_style, {
                            name: "Nightvision"
                        }),
                        nvisionhstyleMap = new google.maps.StyledMapType(nightvision_highlight_style, {
                            name: "Nightvision Light"
                        }),
                        oPaperStyleMap = new google.maps.StyledMapType(old_paper_style, {
                            name: "Old Paper"
                        }),
                        colorfulStyleMap = new google.maps.StyledMapType(colorful_style, {
                            name: "Colorful"
                        }),
                        monoColorStyleMap = new google.maps.StyledMapType(mono_color_style, {
                            name: "One Color"
                        });

                function xmlLoadMap() {

                    var centerLatLng = new google.maps.LatLng($data_lat, $data_lng),
                            mapOptions = {
                                zoom: $zoom_level,
                                center: centerLatLng,
                                //disableDefaultUI: true,
                                //mapTypeId : google.maps.MapTypeId.ROADMAP
                                mapTypeControlOptions: {
                                    mapTypeIds: [google.maps.MapTypeId.TERRAIN, 'colorful_style', 'greyscale_style',
                                        'monochrome_style', 'metro_style', 'nightvision_style', 'nightvision_highlight_style',
                                        'old_paper_style', 'mono_color_style'
                                    ]
                                }
                            },

                            bounds = new google.maps.LatLngBounds(),
                            infowindow = new google.maps.InfoWindow(),
                            map = new google.maps.Map(document.getElementById("map_canvas"), mapOptions);

                    map.mapTypes.set('colorful_style', colorfulStyleMap);
                    map.mapTypes.set('greyscale_style', greyStyleMap);
                    map.mapTypes.set('monochrome_style', monoChromeStyleMap);
                    map.mapTypes.set('metro_style', metroStyleMap);
                    map.mapTypes.set('nightvision_style', nightvisionStyleMap);
                    map.mapTypes.set('nightvision_highlight_style', nvisionhstyleMap);
                    map.mapTypes.set('old_paper_style', oPaperStyleMap);
                    map.mapTypes.set('mono_color_style', monoColorStyleMap);

                    //map.setMapTypeId(google.maps.MapTypeId.TERRAIN);
                    map.setMapTypeId('metro_style');

/*
                    var url = serviciosRest.urlmaster+serviciosRest.urlAmbiente+"AgenteSupervision.aspx?usu=mvaca@primax.com.ec&callBack=";
                    var markers=[];
                    $.getJSON(url + "?",function(result) {
                       // alert(result.length);
                        for(var i=0; i<=result.length; i++)
                        {
                            var lat = result[i].loc_latitud;
                            var long = result[i].loc_longitud;
                            var latlng = new google.maps.LatLng(parseFloat(lat),parseFloat(long));
                           // alert(latlng);
                            addMarker(latlng, "A", i, "A", "A", "FFFFFF");
                        }


                        function addMarker(latlng, myTitle, index, info, letter, color) {
                        var i=49;
                        var ic=i+index;
                        var marker = new google.maps.Marker({
                            position: latlng,
                            map: map,
                            title: myTitle,
                            //icon: 'http://maps.google.com/mapfiles/kml/pal4/icon'+ic+'.png'
                            icon: 'https://chart.googleapis.com/chart?chst=d_map_pin_letter&chld='+letter+'|'+color+'|000000'
                        });
                        google.maps.event.addListener(marker, 'click', function() {
                            /*map.setZoom(18);
                             map.setCenter(marker.getPosition());*//*
                            var infowindow = new google.maps.InfoWindow();
                            var adress;
                            var latlng = new google.maps.LatLng(parseFloat(this.getPosition().lat()),parseFloat(this.getPosition().lng()));
                            geocoder.geocode({'latLng':latlng}, function(results, status) {
                                if (status === google.maps.GeocoderStatus.OK) {
                                    if (results[0]) {
                                        map.setZoom(18);
                                        map.setCenter(marker.getPosition());
                                        adress=results[0].formatted_address;
                                        $('#marker_adress').val(adress);
                                        infowindow.setContent(info+'<br>'+results[0].formatted_address);
                                        infowindow.open(map, marker);
                                    } else {
                                        alert('No results found');
                                    }
                                } else {
                                    alert('FALLA DE CONEXION: ' + status);
                                    //alert('Geocoder failed due to: ' + status);
                                }
                            });
                            //latLong
                            $('#marker_lat').val(marker.getPosition().lat());
                            $('#marker_lng').val(marker.getPosition().lng());

                        });
                        markers.push(marker);
                        }

                     });	// end get data
*/

                } // end xmlLoadMap

                // grey
                function generate_map_1() {

                    var mapOptions = {
                        center: new google.maps.LatLng(41.38155, 2.13752),
                        zoom: 12,
                    };
                    map = new google.maps.Map(document.getElementById('map_canvas1'), mapOptions);

                    // Setup skin for the map
                    map.mapTypes.set('greyscale_style', greyStyleMap);
                    map.setMapTypeId('greyscale_style');

                    /* map.mapTypes.set('colorful_style', colorfulStyleMap);
                     map.mapTypes.set('greyscale_style', greyStyleMap);
                     map.mapTypes.set('monochrome_style', monoChromeStyleMap);
                     map.mapTypes.set('metro_style', metroStyleMap);
                     map.mapTypes.set('nightvision_style', nightvisionStyleMap);
                     map.mapTypes.set('nightvision_highlight_style', nvisionhstyleMap);
                     map.mapTypes.set('old_paper_style', oPaperStyleMap);
                     map.mapTypes.set('mono_color_style', monoColorStyleMap);
                     */

                }

                // colorful
                function generate_map_2() {

                    var mapOptions = {
                        center: new google.maps.LatLng(41.38155, 2.13752),
                        zoom: 12,
                    };
                    map = new google.maps.Map(document.getElementById('map_canvas2'), mapOptions);

                    // Setup skin for the map
                    map.mapTypes.set('colorful_style', colorfulStyleMap);
                    map.setMapTypeId('colorful_style');

                }

                // colorful
                function generate_map_3() {

                    var mapOptions = {
                        center: new google.maps.LatLng(41.38155, 2.13752),
                        zoom: 12,
                    };
                    map = new google.maps.Map(document.getElementById('map_canvas3'), mapOptions);

                    // Setup skin for the map
                    map.mapTypes.set('nightvision_style', nvisionhstyleMap);
                    map.setMapTypeId('nightvision_style');

                }

                // Night Light
                function generate_map_4() {

                    var mapOptions = {
                        center: new google.maps.LatLng(41.38155, 2.13752),
                        zoom: 12,
                    };
                    map = new google.maps.Map(document.getElementById('map_canvas4'), mapOptions);

                    // Setup skin for the map
                    map.mapTypes.set('nightvision_highlight_style', nvisionhstyleMap);
                    map.setMapTypeId('nightvision_highlight_style');

                }

                // Paper Style
                function generate_map_5() {

                    var mapOptions = {
                        center: new google.maps.LatLng(41.38155, 2.13752),
                        zoom: 12,
                    };
                    map = new google.maps.Map(document.getElementById('map_canvas5'), mapOptions);

                    // Setup skin for the map
                    map.mapTypes.set('old_paper_style', oPaperStyleMap);
                    map.setMapTypeId('old_paper_style');

                    /*
                     map.mapTypes.set('monochrome_style', monoChromeStyleMap);
                     map.mapTypes.set('metro_style', metroStyleMap);
                     map.mapTypes.set('mono_color_style', monoColorStyleMap);
                     */

                }

                // One Color Style
                function generate_map_6() {

                    var mapOptions = {
                        center: new google.maps.LatLng(41.38155, 2.13752),
                        zoom: 12,
                    };
                    map = new google.maps.Map(document.getElementById('map_canvas6'), mapOptions);

                    // Setup skin for the map
                    map.mapTypes.set('mono_color_style', monoColorStyleMap);
                    map.setMapTypeId('mono_color_style');

                }

                // Monochrome Style
                function generate_map_8() {

                    var mapOptions = {
                        center: new google.maps.LatLng(41.38155, 2.13752),
                        zoom: 12,
                    };
                    map = new google.maps.Map(document.getElementById('map_canvas8'), mapOptions);

                    // Setup skin for the map
                    map.mapTypes.set('monochrome_style', monoChromeStyleMap);
                    map.setMapTypeId('monochrome_style');

                }

                // Metro Style
                function generate_map_7() {

                    var mapOptions = {
                        center: new google.maps.LatLng(41.38155, 2.13752),
                        zoom: 12,
                    };
                    map = new google.maps.Map(document.getElementById('map_canvas7'), mapOptions);

                    // Setup skin for the map
                    map.mapTypes.set('metro_style', metroStyleMap);
                    map.setMapTypeId('metro_style');

                }

                xmlLoadMap();
               /* generate_map_1();
                generate_map_2();
                generate_map_3();
                generate_map_4();
                generate_map_5();
                generate_map_6();
                generate_map_7();
                generate_map_8();*/
            }


            $(window).bind('gMapsLoaded', initialize);
            window.loadGoogleMaps();

        })

        $(function () { initInfoUsu(); });
        $(function () { cargaCombos("VENDEDOR", "#filtro_usuarios"); });
        $(function () { cargaCombos("INDICADOR", "#filtro_indicador"); });

        </script>

		<!-- Your GOOGLE ANALYTICS CODE Below -->
		<script type="text/javascript">
			var _gaq = _gaq || [];
				_gaq.push(['_setAccount', 'UA-XXXXXXXX-X']);
				_gaq.push(['_trackPageview']);
			
			(function() {
				var ga = document.createElement('script');
				ga.type = 'text/javascript';
				ga.async = true;
				ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
				var s = document.getElementsByTagName('script')[0];
				s.parentNode.insertBefore(ga, s);
			})();

		</script>

	</body>

</html>